import { RouteRecordRaw } from 'vue-router';
import { Layout } from '@/router/constant';
import { SettingOutlined } from '@vicons/antd';
import { renderIcon } from '@/utils/index';

const routes: Array<RouteRecordRaw> = [
  {
    path: '/basicconfig',
    name: 'basicconfig',
    redirect: '/basicconfig/index',
    component: Layout,
    meta: {
      title: 'basic',
      sort: 0,
      icon: renderIcon(SettingOutlined),
    },
    children: [
      {
        path: 'index',
        name: 'basic_index',
        meta: {
          title: '基础配置',
          affix: true,
        },
        component: () => import('@/views/basicConfig/index.vue'),
      },
    ],
  },
];

export default routes;
